/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.ShopRenovation;

/**
 * 店铺装修信息
 *
 * @author lhd
 * @date 2021-01-05 11:03:38
 */
public interface ShopRenovationService extends IService<ShopRenovation> {

    /**
     * 修改店铺装修信息
     * @param shopRenovation 装修
     */
    void updateToHomePage(ShopRenovation shopRenovation);

    /**
     * 轮播图不能超过5个
     *
     * @param shopRenovation 装修内容
     */
    void checkShopRenovation(ShopRenovation shopRenovation);

    /**
     * 主页模板
     * @param shopId
     * @param renovationType
     * @return
     */
    ShopRenovation homeShopRenovation(Long shopId, Integer renovationType);

    /**
     * 获取指定的装修模板
     * @param renovationId
     * @return
     */
    ShopRenovation getShopRenovationById(Long renovationId);

    /**
     * 清除缓存
     * @param shopId
     * @param renovationType
     * @param renovationId
     */
    void removeCache(Long shopId, Integer renovationType, Long renovationId);

}
